using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace BiologicalResearch.Models
{
    public class Experiment
    {
        [Key]
        public int Id { get; set; }
        
        [Required]
        [MaxLength(100)]
        public string Topic { get; set; }
        
        public DateTime StartTime { get; set; }
        public DateTime? EndTime { get; set; }
        public string Status { get; set; } // Planned, InProgress, Completed
        
        [ForeignKey("Agent")]
        public string AgentId { get; set; }
        public ResearchAgent Agent { get; set; }
        
        public List<ResearchFinding> Findings { get; set; }
    }
}